home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / gen_vid / sam2.exe / ASM.ZIP / EXECF6.BAT < prev    next >
DOS Batch File  |  1993-07-06  |  1KB  |  52 lines

  1. @ECHO OFF
  2. ECHO OFF
  3. CLS
  4.  
  5. REM The Seventh parameter equals the first word of the Extern menu
  6.  
  7. IF %7==EXE2COM  GOTO EXE2COM
  8. IF %7==CODEVIEW GOTO CODEVIEW
  9. IF %7==CONFIG   GOTO CONFIG
  10. IF %7==EXECUTE  GOTO EXECUTE
  11. ECHO Function %7 not available !
  12. PAUSE
  13. GOTO END
  14.  
  15. REM EXE2COM transforms an .EXE file into a .COM file if possible ...
  16.  
  17. :EXE2COM
  18. EXE2BIN %2.EXE %2.COM
  19. IF ERRORLEVEL 1 GOTO ERROR
  20. IF EXIST %2.COM DEL %2.EXE
  21. GOTO END
  22.  
  23. REM CODEVIEW is a Microsoft debugger used by the Microsoft Assembler
  24.  
  25. :CODEVIEW
  26. IF EXIST %2.EXE GOTO CV_EXE
  27. CV %2.COM
  28. GOTO END
  29. :CV_EXE
  30. CV %2
  31. GOTO END
  32.  
  33. REM Sometimes, an application is composed of several modules. In this case
  34. REM you will setup a "response file" which will contain the names of all
  35. REM the modules the link must link together to create THE .EXE or .COM file
  36.  
  37. :CONFIG
  38. EDIT %2.CFG
  39. GOTO END
  40.  
  41. REM Execute will run the application from SAM2 for testing
  42.  
  43. :EXECUTE
  44. %2
  45. GOTO END
  46.  
  47. REM Error Handler
  48.  
  49. :ERROR
  50. PAUSE
  51. :END
  52.